const app = getApp();
Page({
  data: {
    StatusBar: app.globalData.StatusBar,
    CustomBar: app.globalData.CustomBar,
    ColorList: app.globalData.ColorList,
  },
  onGetUserInfo: function (e) {
    console.log(app.globalData.isRes,6666)
    if (!this.logged && e.detail.userInfo) {
      if (app.globalData.isRes){
        wx.redirectTo({
          url: '/pages/reg/reg'
        })
      }else{
        app.globalData.userInfo = e.detail.userInfo;
        wx.switchTab({
          url: '/pages/basics/home/home',
        })
      }
    }
  }
});
